package com.frank.fresh_mall;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
// 配置Mapper接口位置
@MapperScan(basePackages = {"com.frank.fresh_mall.model.dao"})
//@ComponentScan(basePackages = {"com.frank.fresh_mall.*"})
@EnableSwagger2
@EnableCaching // 添加缓存注解
public class FreshMallApplication {

    public static void main(String[] args) {
        SpringApplication.run(FreshMallApplication.class, args);
    }

}
